<style type="text/css">
    .not-border-bottom{
        border: 0;
    }
</style>

<div class="center_content">
    <div>
        <table>
            <tr>
                <td class="title_message_td not-border align_left">
                    <h2><?=__(LANG_ADMIN_LIST)?></h2>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <?php echo $this->Form->create('admin_del', array('onsubmit' => 'return confirm('.'"'.__(LANG_DELETE_READY).'");')); ?>
    </div>
    <table>
        <tr>
            <th style="width: 110px"><?=__(LANG_ADMIN_AUTH)?></th>
            <th style="width: %"><?=__(LANG_ADMIN_ID)?></th>
            <th style="width: %"><?=__(LANG_ADMIN_NAME)?></th>
            <th style="width: %"><?=__(LANG_ADMIN_BELONG)?></th>
            <th style="width: 10%"></th>
        </tr>
        <?php if(!empty($admin_list)) {?>
            <?php foreach($admin_list as $num => $admin_info) {?>
                <tr>
                    <td><?=($admin_info['tbl_admin_member']['admin_auth'])?></td>
                    <td><?=($admin_info['tbl_admin_member']['admin_id'])?></td>
                    <td><?=($admin_info['tbl_admin_member']['admin_name'])?></td>
                    <td><?=($admin_info['tbl_admin_member']['admin_belong'])?></td>
                    <td class="actions">
                        <?php if($_SESSION['login_session']['admin_id'] == $admin_info['tbl_admin_member']['admin_id'] || $_SESSION['login_session']['admin_auth'] == AUTH_ADMINISTRATOR_TOP){ ?>
                            <?php echo $this->Html->link(__(LANG_ADMIN_EDIT), array('controller' => 'Admin', 'action' => 'admin_edit', $admin_info['tbl_admin_member']['admin_id']));?>
                        <?php }?>
                    </td>
                </tr>
            <?php }?>
        <?php }?>
    </table>
</div>

<div class="center_bottom_content">
    <table class="actions">
        <tr>
            <td class="not-border-bottom">
                <?php if($_SESSION['login_session']['admin_auth'] == AUTH_ADMINISTRATOR_TOP) {?>
                    <?php echo $this->Html->link(__(LANG_ADMIN_ADD), array('controller' => 'Admin', 'action' => 'admin_create'));?>
                <?php }?>
            </td>
        </tr>
    </table>
</div>

<table>
    <tr>
        <td class="not-border-bottom" style="width: 100px"><b>__(LANG_WEBSERVER_STATE)</b></td>
        <td class="not-border-bottom" style="width: 100px">
            <?php
            if($server_status == 0)
                echo 'Server ON';
            else
                echo 'Server OFF';
            ?>
        </td>
        <td class="not-border-bottom"></td>
    </tr>
    <tr>
    <tr>
    <?php echo $this->Html->link(__('实时账户和建角数(실시간 채널사별로 유저데이트)'), array('action' => 'user_char_total'));
     echo '<br />';
    ?>
    </tr>
    <tr>
    <?php
    echo $this->Html->link(__('按日期账户和建角数(날짜별로 유저 데이트)'), array('action' => 'user_char_date_total',date("d")));
     echo '<br />';
    ?>
    </tr>

    <tr>
        <?php
        echo "<a href=http://211.151.100.104:33001/dau_data?client=FantasyHero> 每日DAU数据(날짜별 DAU) </a>";
        ?>
    </tr>

    <tr>
        <li class="tales_of_deonia"><?php echo 'RETENTION Data:  '.'<br />';
            for($i = 5 ; $i<15; $i++)
            {
                echo $this->Html->link(__('  March Day'.$i), array('action' => 'user_retention',$i));
                echo '<br />';
                if ($i+2 >= date("d"))
                    break ;
            };
             echo '<br />';
            ?></li>
    </tr>

    <tr>
            <li class="tales_of_deonia"><?php echo 'DAY_7 RETENTION Data:  '.'<br />';
                for($i = 5 ; $i<8; $i++)
                {
                    echo $this->Html->link(__('  March Day'.$i), array('action' => 'user_retention_7',$i));
                    echo '<br />';
                };
                 echo '<br />';
                ?></li>
        </tr>

    </tr>
</table>